import { sys } from "cc";

export class UserPreference {
    static setFloat(key: string, value: number) {
        sys.localStorage.setItem(key, value.toString())
    }
    static getFloat(key: string) {
        return Number.parseFloat(sys.localStorage.getItem(key))
    }
}